<template>
    <div>
        <ul class="mui-table-view">
            <li class="mui-table-view-cell" v-for="(item,index) in list" :key="index">
                <router-link v-bind="{to:'/news/newsinfo/'+item.id}">
                <h4>{{item.title}}</h4>
                <!-- <img :src="item.img_url"> -->
                <p>{{item.zhaiyao}}</p>
                </router-link>
            </li>
           
        </ul>    
    </div>
</template>
<script>
import {Toast} from "mint-ui";
export default {
    data(){
        return{
            id:0,
            list:[],

        }
    },
    created(){
        this.getnewslist();
    },
    methods:{
        getnewslist(){
            var url = "http://www.lovegf.cn:8899/api/getimages/"+this.id;
            this.$http.get(url).then(function(res){
                var data = res.body;
                if(data.status!=0){
                    Toast("信息加载失败");
                    return;
                }
                this.list = data.message;
            })
        }
    }


}
</script>
<style scoped>

</style>
